﻿#ifndef CHAT_ROOM_H
#define CHAT_ROOM_H

#include <QMap>

#include "abstractchatroom.h"

class Member;

typedef QMap<int, Member*> MemberMap;

class ChatRoom : public AbstractChatRoom
{
public:
    explicit ChatRoom();

    void registerMember(int id, Member* member);

    void sendImage(int fromID, int toID, QString imageName);

    void sendText(int fromID, int toID, QString textInfo);

private:
    MemberMap m_memberMap;
};

#endif // CHAT_ROOM_H
